package cn.shangqizhenshuai.extend.entity;

import java.util.Map;
import java.util.Set;

public class ExtendsEntity {
    //变量名称,类型
    private Map<String,String> property;
    //当前包名
    private String imPackage;
    //类名
    private String javaname;
    //需要导入的所有包名
    private Set<String> impotrs;

    public Map<String, String> getProperty() {
        return property;
    }

    public void setProperty(Map<String, String> property) {
        this.property = property;
    }

    public String getImPackage() {
        return imPackage;
    }

    public void setImPackage(String imPackage) {
        this.imPackage = imPackage;
    }

    public String getJavaname() {
        return javaname;
    }

    public void setJavaname(String javaname) {
        this.javaname = javaname;
    }

    public Set<String> getImpotrs() {
        return impotrs;
    }

    public void setImpotrs(Set<String> impotrs) {
        this.impotrs = impotrs;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ExtendsEntity that = (ExtendsEntity) o;

        if (property != null ? !property.equals(that.property) : that.property != null) return false;
        if (imPackage != null ? !imPackage.equals(that.imPackage) : that.imPackage != null) return false;
        if (javaname != null ? !javaname.equals(that.javaname) : that.javaname != null) return false;
        return impotrs != null ? impotrs.equals(that.impotrs) : that.impotrs == null;
    }

    @Override
    public int hashCode() {
        int result = property != null ? property.hashCode() : 0;
        result = 31 * result + (imPackage != null ? imPackage.hashCode() : 0);
        result = 31 * result + (javaname != null ? javaname.hashCode() : 0);
        result = 31 * result + (impotrs != null ? impotrs.hashCode() : 0);
        return result;
    }
}
